1 <%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<CSASPNETMVCPager.Models.RegisterModel>" %>
3 <asp:Content ID="registerTitle" ContentPlaceHolderID="TitleContent" runat="server">
6 <asp:Content ID="registerContent" ContentPlaceHolderID="MainContent" runat="server">
8 Create a New Account</h2>
10 Use the form below to create a new account.
13 Passwords are required to be a minimum of
14 <%= Html.Encode(ViewData["PasswordLength"]) %>
17 <% using (Html.BeginForm())
19 <%= Html.ValidationSummary(true, "Account creation was unsuccessful. Please correct the errors and try again.") %>
22 <legend>Account Information</legend>
23 <div class="editor-label">
24 <%= Html.LabelFor(m => m.UserName) %>
26 <div class="editor-field">
27 <%= Html.TextBoxFor(m => m.UserName) %>
28 <%= Html.ValidationMessageFor(m => m.UserName) %>
30 <div class="editor-label">
31 <%= Html.LabelFor(m => m.Email) %>
33 <div class="editor-field">
34 <%= Html.TextBoxFor(m => m.Email) %>
35 <%= Html.ValidationMessageFor(m => m.Email) %>
37 <div class="editor-label">
38 <%= Html.LabelFor(m => m.Password) %>
40 <div class="editor-field">
41 <%= Html.PasswordFor(m => m.Password) %>
42 <%= Html.ValidationMessageFor(m => m.Password) %>
44 <div class="editor-label">
45 <%= Html.LabelFor(m => m.ConfirmPassword) %>
47 <div class="editor-field">
48 <%= Html.PasswordFor(m => m.ConfirmPassword) %>
49 <%= Html.ValidationMessageFor(m => m.ConfirmPassword) %>
52 <input type="submit" value="Register" />